package com.liyao.protobuf.test.service;

import io.grpc.Server;

import java.io.IOException;

public class RpcServer {
    public static final int port = 8088;
 
    public static void main( String[] args ) throws IOException, InterruptedException {
        MyRpcServiceImpl service = new MyRpcServiceImpl();
        Server server = io.grpc.ServerBuilder
                .forPort(port)
                .addService(service)
                .build();
        server.start();
        server.awaitTermination();
    }
}